<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="/WEB-INF/custom-functions.tld" prefix="fn" %>
<%@ include file="../general/header.jsp" %>
	<h3><c:out value="${title}" />:</h3>
	<div class="featurebox_center" id="search">
		<c:choose>
			<c:when test="${empty friends}">
				<c:out value="${emptyMess}" />
				<br /><br /> 
			</c:when>
			<c:otherwise>
				<div class="clear"></div>
				<ul class="usuarios">
					<c:forEach var="user" items="${friends}">
						<li class="usuario">
							<a href="../user/viewProfile?userid=${user.id}">
								<img class="foto" width="120" height="120" src="../user/getImage?profileid=${user.profile.id}" />
								<div class="info">
									<div class="item">
										<label>DNI:</label>
										<span><c:out value="${user.docNumber}" /></span>
									</div>
									<div class="item">
										<span><c:out value="${user.name}" /> <c:out value="${user.lastName}" /></span>
									</div>
									<div class="item">
										<span title="<c:out value="${user.email}" />"><c:out value="${user.email}" /></span>
									</div>
									<span class="verperfil" href="../user/viewProfile?userid=${user.id}">Ver Perfil</span>
								</div>
								<c:if test="${fn:contains(userlogged.friends, user)}">
									<img src="../../img/star.png" class="checkuser star"/>
								</c:if>
								<div class="clear"></div>
							</a>
						</li>
					</c:forEach>
					<div class="clear"></div>
				</ul>
			</c:otherwise>
		</c:choose>
	</div>
<%@ include file="../general/footer.jsp" %>